package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicPoDO;
import com.cssy.yd.logic.entity.PoGatherExecuteReportFormsDO;
import com.cssy.yd.logic.entity.PoGatherReportFormsDO;
import com.cssy.yd.logic.entity.PoItemExecuteReportFormsDO;
import com.cssy.yd.logic.entity.PoItemReportFormsDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

/**
 * ��ݷ��ʶ���ӿ�
 * @since 2013-07-18
 */
public interface LogicPoDAO {

    /**
     * �������
     * @param logicPoDO
     * @return ������ݵ�����
     */
    public String insertLogicPoDO(LogicPoDO logicPoDO) throws DataAccessException;

    /**
     * ͳ�Ƽ�¼��
     * @param logicPoDO
     * @return ����ļ�¼��
     */
    public Integer countLogicPoDOByExample(LogicPoDO logicPoDO) throws DataAccessException;

    /**
     * ���¼�¼
     * @param logicPoDO
     * @return ��Ӱ�������
     */
    public Integer updateLogicPoDO(LogicPoDO logicPoDO) throws DataAccessException;

    /**
     * ��ȡ�����б�
     * @param logicPoDO
     * @return �����б�
     */
    public List<LogicPoDO> findListByExample(LogicPoDO logicPoDO) throws DataAccessException;

    /**
     * ��������ȡlogicPoDO
     * @param id
     * @return logicPoDO
     */
    public LogicPoDO findLogicPoDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * ɾ���¼
     * @param id
     * @return ��Ӱ�������
     */
    public Integer deleteLogicPoDOByPrimaryKey(String id) throws DataAccessException;

    public List<LogicPoDO> find(SearchConditions scs) throws DataAccessException;
    
    public Integer count(SearchConditions scs) throws DataAccessException;

	public LogicPoDO findcode(String code) throws DataAccessException;
	
	public List<PoGatherReportFormsDO> findPoGather(Map<String, Object> map) throws DataAccessException;
	
	public List<PoItemReportFormsDO> findPoItem(Map<String, Object> map) throws DataAccessException;

	public List<PoGatherExecuteReportFormsDO> findPoGatherExecute(Map<String, Object> map) throws DataAccessException;
	
	public List<PoItemExecuteReportFormsDO> findPoItemExecute(Map<String, Object> map) throws DataAccessException;

	public Integer findPoGatherCount(Map<String, Object> map) throws DataAccessException;

	public Integer findPoItemCount(Map<String, Object> map) throws DataAccessException;

	public Integer findPoGatherExecuteCount(Map<String, Object> map)
			throws DataAccessException;

	public Integer findPoItemExecuteCount(Map<String, Object> map)
			throws DataAccessException;
}